﻿@using SelfMadeMillionaire.Web.Infrastructure.ViewModels.Admin
@using SelfMadeMillionaire.Web.Infrastructure
@model SubscriptionPaymentsReportViewModel
@{
    ViewBag.Title = "Subscription Payments";
	Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
}

<div class="table_container">
	<div id="report-list">
		@Html.Partial("SubscriptionPaymentsList")
	</div>
</div>

<script type="text/javascript">
    function GetList() {
        $.get("@Url.Action("SubscriptionPayments")",
				{
				    page: '@(Model.Transactions.PageNumber.ToString())',
				    sort: $("#@Html.IdFor(m => m.SortOrder)").val()
				},
				function (result) {
				    $("#report-list").html(result);
				}
             );
    }
</script>
